﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SnmpForm.ApBatchConfig
{
    class BatchLedLightTask:BatchTask
    {
        bool _bEnable = false;
        public BatchLedLightTask(FrmApBatchConfig objForm,
            List<BusinessWrapper.Ap> aps, 
            bool enable)
            : base(objForm, aps)
        {
            _bEnable = enable;
        }

        public override void ApRequestAction(BusinessWrapper.Ap ap)
        {
            if (ap.SetLedLight(_bEnable))
            {
            }
            else
            {
                throw new Exception("设置LED失败");
            }
        }
    }
}
